<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of soaUsers
 *
 * @author dxx
 */

namespace app\common\model\jsm;

use think\Model;

class Cards extends Model {

    protected $table = 'jj_cards';
    protected $connection = ['database' => 'jooj_jsm'];

    public function __construct($data = []) {
        parent::__construct($data);
    }
  

    /**
     * 获取一条记录
     * @param type $condition
     */
    public function getOne($condition = [],$field='*'){
        return $this->field($field)->where($condition)->find();
    }
}
